home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel PPC / lib_show / bench2 / bench2.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  497 b   |  31 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. deferred class BENCH2
  5. --
  6. -- Are FIXED_ARRAY running faster than ARRAY ?
  7. --
  8.  
  9. feature {NONE}
  10.    
  11.    cltn: COLLECTION[INTEGER] is
  12.       deferred
  13.       end;
  14.  
  15.    upper: INTEGER is 900000;
  16.  
  17.    bench is
  18.       local
  19.      i: INTEGER;
  20.       do
  21.      from
  22.         i := cltn.upper - 1;
  23.      until
  24.         i = cltn.lower
  25.      loop
  26.         cltn.put(cltn.item(i-1),i);
  27.         i := i - 1;
  28.      end;
  29.       end;
  30. end
  31.